package com.sixteen.ordering_system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sixteen
 * @since 2022-09-16
 */
//默认set,get
@Data
//重写equals
@EqualsAndHashCode(callSuper = false)
//链式编程  懂？？？
@Accessors(chain = true)
public class SysOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜品订单
     */
    @TableId(value = "sys_order_id", type = IdType.AUTO)
    private Integer sysOrderId;

    /**
     * 用户id
     */
    private Integer sysUserId;

    /**
     * 进餐人数
     */
    private Integer numberOfDiners;

    /**
     * 默认0未支付，1已支付
     */
    private Integer state;

    private Integer dishId;

    private String remark;

    private Dish dish;


}
